// 路由懒加载
const Home = ()=>import("@/pages/Home")
const Login = ()=>import("@/pages/Login")
const Register = ()=>import("@/pages/Register")
const Search = ()=>import("@/pages/Search")
const Detail = ()=>import("@/pages/Detail")
const AddCartSuccess = ()=>import("@/pages/AddCartSuccess")
const ShopCart = ()=>import("@/pages/ShopCart")
const Trade = ()=>import("@/pages/Trade")
const Pay = ()=>import("@/pages/Pay")
const Test = ()=>import("@/pages/Test")


export default [
    {
        path:"/",
        component:Home
    },
    {
        path:"/test",
        component:Test
    },
    {
        path:"/login",
        component:Login,
        meta:{
            isHiddenFooter:true
        }
    },
    {
        path:"/register",
        component:Register,
        meta:{
            isHiddenFooter:true
        }
    },
    {
        path:"/search",
        component:Search
    },
    {
        path:"/detail/:id",
        component:Detail
    },
    {
        path:"/addcart_success",
        component:AddCartSuccess
    },
    {
        path:"/shopcart",
        component:ShopCart
    },
    {
        path:"/trade",
        component:Trade
    },
    {
        path:"/pay",
        component:Pay
    }

    
]